package com.ruoyi.module.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户复习记录对象 user_review_record
 * 
 * @author ruoyi
 */
public class UserReviewRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 词典ID */
    @Excel(name = "词典ID")
    private String dictId;

    /** 当前进度 */
    @Excel(name = "当前进度")
    private Integer index;

    /** 创建时间戳 */
    private Long createTimestamp;

    /** 是否完成（0否1是） */
    @Excel(name = "是否完成", readConverterExp = "0=否,1=是")
    private Integer isFinished;

    /** 复习单词列表（JSON数组） */
    private String words;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDictId(String dictId) 
    {
        this.dictId = dictId;
    }

    public String getDictId() 
    {
        return dictId;
    }

    public void setIndex(Integer index) 
    {
        this.index = index;
    }

    public Integer getIndex() 
    {
        return index;
    }

    public void setCreateTimestamp(Long createTimestamp) 
    {
        this.createTimestamp = createTimestamp;
    }

    public Long getCreateTimestamp() 
    {
        return createTimestamp;
    }

    public void setIsFinished(Integer isFinished) 
    {
        this.isFinished = isFinished;
    }

    public Integer getIsFinished() 
    {
        return isFinished;
    }

    public void setWords(String words) 
    {
        this.words = words;
    }

    public String getWords() 
    {
        return words;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("dictId", getDictId())
            .append("index", getIndex())
            .append("createTimestamp", getCreateTimestamp())
            .append("isFinished", getIsFinished())
            .append("words", getWords())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}

